using Npgsql;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConnectPg
{
  public static class PgConn
  {
    public static NpgsqlConnection NewConnection()
    {
      var connString = ConfigurationManager.ConnectionStrings["postgre"].ConnectionString;
      return new NpgsqlConnection(connString);
    }
  }
}
